<?php
use_helper('I18N');
?>
<div class="sidebar" id="sidebar">
<script type="text/javascript">
    try {
        ace.settings.check('sidebar', 'fixed')
    } catch(e) {
    }
</script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts">
    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
        <button class="btn btn-success">
            <i class="icon-signal"></i>
        </button>

        <button class="btn btn-info">
            <i class="icon-pencil"></i>
        </button>

        <button class="btn btn-warning">
            <i class="icon-group"></i>
        </button>

        <button class="btn btn-danger">
            <i class="icon-cogs"></i>
        </button>
    </div>

    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
        <span class="btn btn-success"></span>

        <span class="btn btn-info"></span>

        <span class="btn btn-warning"></span>

        <span class="btn btn-danger"></span>
    </div>
</div>
<!-- #sidebar-shortcuts -->
<?php
$mainMenu = $sf_user->getAttribute(Globals::SESSION_MAIN_MENU);
$subMenu = $sf_user->getAttribute(Globals::SESSION_SUB_MENU);
?>
<ul class="nav nav-list">
<li <?php if ($mainMenu == "SUMMARY") { echo "class='active open'"; }?>>
    <a href="/member/summary">
        <i class="icon-dashboard"></i>
        <span class="menu-text"> <?php echo __('Home'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "BANK_ACCOUNT") { echo "class='active open'"; }?>>
    <a href="/member/bankAccount">
        <i class="icon-bar-chart"></i>
        <span class="menu-text"> <?php echo __('Bank Account'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "DEPOSIT") { echo "class='active open'"; }?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-list"></i>
        <span class="menu-text"> <?php echo __('Deposit'); ?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php if ($subMenu == "FUNDS_DEPOSIT") { echo "class='open'"; }?>>
            <a href="/member/fundsDeposit">
                <i class="icon-bar-chart"></i>
                <span class="menu-text"> <?php echo __('Funds Deposit'); ?> </span>
            </a>
        </li>
        <li <?php if ($subMenu == "FUNDS_DEPOSIT_STATUS") { echo "class='open'"; }?>>
            <a href="/member/fundsDepositStatus">
                <i class="icon-bar-chart"></i>
                <span class="menu-text"> <?php echo __('Funds Deposit Status'); ?> </span>
            </a>
        </li>
    </ul>
</li>

<li <?php if ($mainMenu == "WITHDRAWAL") { echo "class='active open'"; }?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-list"></i>
        <span class="menu-text"> <?php echo __('Withdrawal'); ?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php if ($subMenu == "WITHDRAWAL") { echo "class='open'"; }?>>
            <a href="/member/withdrawal">
                <i class="icon-bar-chart"></i>
                <span class="menu-text"> <?php echo __('Withdrawal'); ?> </span>
            </a>
        </li>
        <li <?php if ($subMenu == "WITHDRAWAL_STATUS") { echo "class='open'"; }?>>
            <a href="/member/withdrawalStatus">
                <i class="icon-bar-chart"></i>
                <span class="menu-text"> <?php echo __('Withdrawal Status'); ?> </span>
            </a>
        </li>
    </ul>
</li>

<li <?php if ($mainMenu == "GAME_LOGIN") { echo "class='active open'"; }?>>
    <a href="/member/gameLogin">
        <i class="icon-bar-chart"></i>
        <span class="menu-text"> <?php echo __('Games Login'); ?> </span>
    </a>
</li>

</ul>
<!-- /.nav-list -->

<div class="sidebar-collapse" id="sidebar-collapse">
    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>

<script type="text/javascript">
    try {
        ace.settings.check('sidebar', 'collapsed')
    } catch(e) {
    }
</script>
</div>